<div class="container">
	<form class="form-horizontal" role="form" method="post" action="#">
	<div class="col-md-offset-1" id="formuser">
		<div class="col-md-11">
			<div class="panel panel-default">
				<div class="panel-heading"><h4 class="panel-title"><b class="caret"></b><b> Request By</b></h4></div>
				<div class="panel-body">
					<div class="col-xs-12 col-md-6">
						<div class="form-group">
							<label class="control-label col-md-4">Name<span style="color:red;">*</span></label>
							<div class="col-md-7"><input type="text" value="" id="r_name" class="select2 form-control input-sm">
							<input type="hidden" value="" id="r_nama" class="select2 form-control input-sm" readonly="true"/></div>
						</div>					
						<div class="form-group">
							<label class="control-label col-md-4">ID Number</label>
							<div class="col-md-3"><input type="text" value="" id="r_id" class="form-control input-sm" readonly="true"/></div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-4">Manager</label>
							<div class="col-md-7"><input type="text" value="" id="r_mgr" class="form-control input-sm" readonly="true"/>
							<input type="hidden" value="" id="r_mgrid" class="form-control input-sm" readonly="true"/></div>
						</div>
					</div>
					<div class="col-sm-7 col-md-6">
						<div class="form-group">
							<label class="control-label col-md-4">Departement</label>
							<div class="col-md-7"><input type="text" value="" id="r_dept" class="form-control input-sm" readonly="true"/></div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-4">Job Position</label>
							<div class="col-md-8"><input type="text" value="" id="r_job" class="form-control input-sm" readonly="true"/></div>
						</div>
					</div>
				</div>
			</div>
			<div class="panel panel-default" style="padding-bottom: 30px;">
				<div class="panel-heading"><h4 class="panel-title"><b class="caret"></b><b> Form</b></h4></div>
				<div class="panel-body">
					<div class="col-xs-12 col-md-6">
						<div class="form-group">
							<label class="control-label col-md-3">Date</label>
							<div class="col-md-6">
								<div class="input-group">
									<span class="input-group-addon"><small>From</small></span>
									<input type="text" class="form-control input-sm" autocomplete="off" name="Other_StartDate" id="G_Date2" value="<?php echo $dtNow?>">
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-3"></label>
							<div class="col-md-6">
								<div class="input-group">
									<span class="input-group-addon"><small>To</small></span>
									<input type="text" class="form-control input-sm" autocomplete="off" name="Other_EndDate" id="G_Date3" value="<?php echo $dtNow?>">
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-3">Time</label>
							<div class="col-md-5">
								<div class="input-group">
									<span class="input-group-addon"><small>From</small></span>										
									<input type="text" class="form-control input-sm" autocomplete="off" name="Other_StartTime" id="G_Time4" value="07:00">
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-3"></label>
							<div class="col-md-5">
								<div class="input-group">
									<span class="input-group-addon"><small>To</small></span>										
									<input type="text" class="form-control input-sm" autocomplete="off" name="Other_EndTime" id="G_Time5" value="07:00">
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-3" style="color:red">
								<p><i><small>Overtime</small></i></p>
							</label>
							<div class="col-md-8">
								<label class="control-label col-md-10" style="color:red">
									<p class="text-left"><i><small>Monday ~ Friday 18:00 | Saturday start from 13:00 | Sunday all day.</small></i></p>
								</label>
							</div>
						</div>
					</div>
					<div class="col-md-6">
						<div class="form-group">
							<label class="control-label col-md-4">Facility</label>
							<div class="col-md-6">
								<div class="checkbox">
									<label><input id="pAc" type="checkbox" value="Y"/>Air Conditioner</label>
								</div>
								<div class="checkbox">
									<label><input id="pLift" type="checkbox" value="Y"/>Service Lift</label>
								</div>
								<div class="checkbox">
									<label><input id="pLighting" type="checkbox" value="Y"/>Lighting & Power</label>
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-4">Description</label>
							<div class="col-md-5">
								<textarea id="pDesc" class="form-control input-sm" required="required" style="min-width:190px;max-width:200px;min-height:100px;max-height:200px;"></textarea>
							</div>
						</div>
					</div>
					
					<!--div class="col-sm-12 col-md-12 well well-sm">
						<div class="form-group">
							<div class="col-md-12"><label style="color:#003399">All actions apply only to entries with check marked checkboxes only.</label></div>
						</div>
						<div class="form-inline" style="margin-bottom:3px">
							<div class="form-group">
								<div class="col-md-1"><input type="button" class="btn btn-sm btn-default" value="Add Form" onClick="addRow('dataTable')" /></div>
							</div>
							<div class="form-group">
								<div class="col-md-1"><input type="button" class="btn btn-sm btn-default" value="Remove Form" onClick="deleteRow('dataTable')"/></div>
							</div>
						</div>
						<div class="table-responsive">
							<table class="table table-bordered table-condensed table-striped" style="margin-bottom:0px">
								<thead>
									<tr>
										<td class="tblhead" style="width:3%;text-align:center"></td>
										<th class="tblhead" style="width:3%;text-align:center">No.</th>
										<th class="tblhead" style="width:20%;text-align:center">Name</th>
										<th class="tblhead" style="width:10%;text-align:center">Floor</th>
										<th class="tblhead" style="width:25%;text-align:center">Location</th>
										<th class="tblhead" style="width:35%;text-align:center">Company Name</th>
									</tr>
								</thead>
								<tbody>
									<tr>
									<table id="dataTable" class="table table-bordered table-condensed table-striped" style="margin-bottom:0px">
										<tr>
											<td style="width:3%;"><input type="checkbox" name="chk[]" /></td>
											<td style="width:3%;">1</td>
											<td style="width:20%;"><input type="text" id="OT_Name" name="OT_Name[]" class="form-control input-sm"/></td>
											<td style="width:10%;">
												<select id="OT_Floor" name="OT_Floor[]" class="form-control" >
												<?php /*
												foreach ($ShowFloor AS $ShowFloor)
												{
													echo '<option value= '.$ShowFloor['MST_FLOOR_DESC'].'>'.$ShowFloor['MST_FLOOR_DESC'].'</option>';
												}; */ ?>
												</select>
											</td>
											<td style="width:25%;text-align:center"><input type="text" name="OT_Location[]" class="form-control input-sm"/></td>
											<td style="width:35%;text-align:center"><input type="text" name="OT_Company[]" class="form-control input-sm"/></td>																		
										</tr>
									</table>
									</tr>
								</tbody>
							</table>
						</div>
					</div-->
					
					<div id="tablecontent" class="col-md-12" style="padding-top: 0px;">					
						<div class="form-group">
							<div class="table-responsive">
								<table class="table table-bordered table-condensed table-striped" style="background:#f9f9f9;">
									<thead>
										<tr>
											<th class="tblhead" style="width:3%;text-align:center;">No</th>
											<th class="tblhead" style="width:27%;text-align:center">Name</th>
											<th class="tblhead" style="width:14%;text-align:center">Floor</th>
											<th class="tblhead" style="width:10%;text-align:center">Location</th>
											<th class="tblhead" style="width:10%;text-align:center">Vendor Name</th>																					
										</tr>
									</thead>
									<tbody>
										<tr>
											<td bgcolor="#FFFFFF" class="tbl-content-c" style="width:3%;text-align:center;">1.</td>
											<td style="width:20%;"><input type="text" required="required" id="OT_Name1" class="form-control input-sm"/></td>											
											<td style="width:10%;">
												<select id="OT_Floor1" class="form-control">
												<option value="">select</option>
												<?php 
												foreach ($ShowFloor1 AS $ShowFloor)
												{
													echo '<option value= '.$ShowFloor['MST_FLOOR_DESC'].'>'.$ShowFloor['MST_FLOOR_DESC'].'</option>';
												};?>
												</select>
											</td>											
											<td style="width:25%;text-align:center"><input type="text" required="required" id="OT_Location1" class="form-control input-sm"/></td>
											<td style="width:35%;text-align:center">
											<input type="text" id="vendor_id1" class="form-control input-sm"/>											
											<input type="hidden" id="r_venid1"   value="" class="form-control input-sm" readonly="true"/>
											<input type="hidden" id="r_vennama1" value="" class="form-control input-sm" readonly="true"/>
											<input type="hidden" id="r_venpic1" value="" class="form-control input-sm" readonly="true"/>
											</td>
										</tr>
										<tr>
											<td bgcolor="#FFFFFF" class="tbl-content-c" style="width:3%;text-align:center;">2.</td>
											<td style="width:20%;"><input type="text" id="OT_Name2" class="form-control input-sm"/></td>											
											<td style="width:10%;">
												<select id="OT_Floor2" class="form-control" >
												<option value="">select</option>
												<?php 
												foreach ($ShowFloor2 AS $ShowFloor)
												{
													echo '<option value= '.$ShowFloor['MST_FLOOR_DESC'].'>'.$ShowFloor['MST_FLOOR_DESC'].'</option>';
												};?>
												</select>
											</td>											
											<td style="width:25%;text-align:center"><input type="text" id="OT_Location2" class="form-control input-sm"/></td>
											<td style="width:35%;text-align:center">
											<input type="text" id="vendor_id2" class="form-control input-sm"/>											
											<input type="hidden" id="r_venid2"   value="" class="form-control input-sm" readonly="true"/>
											<input type="hidden" id="r_vennama2" value="" class="form-control input-sm" readonly="true"/>
											<input type="hidden" id="r_venpic2" value="" class="form-control input-sm" readonly="true"/>
											</td>
										</tr>
										<tr>
											<td bgcolor="#FFFFFF" class="tbl-content-c" style="width:3%;text-align:center;">3.</td>
											<td style="width:20%;"><input type="text" id="OT_Name3" class="form-control input-sm"/></td>											
											<td style="width:10%;">
												<select id="OT_Floor3" class="form-control" >
												<option value="">select</option>
												<?php 
												foreach ($ShowFloor3 AS $ShowFloor)
												{
													echo '<option value= '.$ShowFloor['MST_FLOOR_DESC'].'>'.$ShowFloor['MST_FLOOR_DESC'].'</option>';
												};?>
												</select>
											</td>											
											<td style="width:25%;text-align:center"><input type="text" id="OT_Location3" class="form-control input-sm"/></td>
											<td style="width:35%;text-align:center">
											<input type="text" id="vendor_id3" class="form-control input-sm"/>											
											<input type="hidden" id="r_venid3"   value="" class="form-control input-sm" readonly="true"/>
											<input type="hidden" id="r_vennama3" value="" class="form-control input-sm" readonly="true"/>
											<input type="hidden" id="r_venpic3" value="" class="form-control input-sm" readonly="true"/>
											</td>
										</tr>
										<tr>
											<td bgcolor="#FFFFFF" class="tbl-content-c" style="width:3%;text-align:center;">4.</td>
											<td style="width:20%;"><input type="text" id="OT_Name4" class="form-control input-sm"/></td>											
											<td style="width:10%;">
												<select id="OT_Floor4" class="form-control" >
												<option value="">select</option>
												<?php 
												foreach ($ShowFloor4 AS $ShowFloor)
												{
													echo '<option value= '.$ShowFloor['MST_FLOOR_DESC'].'>'.$ShowFloor['MST_FLOOR_DESC'].'</option>';
												};?>
												</select>
											</td>											
											<td style="width:25%;text-align:center"><input type="text" id="OT_Location4" class="form-control input-sm"/></td>
											<td style="width:35%;text-align:center">
											<input type="text" id="vendor_id4" class="form-control input-sm"/>											
											<input type="hidden" id="r_venid4"   value="" class="form-control input-sm" readonly="true"/>
											<input type="hidden" id="r_vennama4" value="" class="form-control input-sm" readonly="true"/>
											<input type="hidden" id="r_venpic4" value="" class="form-control input-sm" readonly="true"/>
											</td>
										</tr>
										<tr>
											<td bgcolor="#FFFFFF" class="tbl-content-c" style="width:3%;text-align:center;">5.</td>
											<td style="width:20%;"><input type="text" id="OT_Name5" class="form-control input-sm"/></td>											
											<td style="width:10%;">
												<select id="OT_Floor5" class="form-control" >
												<option value="">select</option>
												<?php 
												foreach ($ShowFloor5 AS $ShowFloor)
												{
													echo '<option value= '.$ShowFloor['MST_FLOOR_DESC'].'>'.$ShowFloor['MST_FLOOR_DESC'].'</option>';
												};?>
												</select>
											</td>											
											<td style="width:25%;text-align:center"><input type="text" id="OT_Location5" class="form-control input-sm"/></td>
											<td style="width:35%;text-align:center">
											<input type="text" id="vendor_id5" class="form-control input-sm"/>											
											<input type="hidden" id="r_venid5"   value="" class="form-control input-sm" readonly="true"/>
											<input type="hidden" id="r_vennama5" value="" class="form-control input-sm" readonly="true"/>
											<input type="hidden" id="r_venpic5" value="" class="form-control input-sm" readonly="true"/>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
					</div>
					
					<div class="col-sm-8" style="padding-top: 10px;">
						<div class="col-sm-7"><label for="button" class="control-label">&nbsp;</label></div>
						<div class="col-sm-4">
							<button type="button" class="btn btn-success btn-md" onclick="InsertOvertime()">
							<!--span class="glyphicon glyphicon-saved"></span--> Save This Form</button>
						</div>
					</div>
					
					<!--div class="col-sm-12 col-md-12" style="margin-top:40px;">
						<div class="form-group" style="text-align:center">
							<input type="submit" value="Submit This Form" id="btn_submitform" class="btn btn-md btn-success"> 
							<!--button type="button" class="btn btn-primary btn-block" onclick="InsertOvertime();">Submit</button>
						</div>
					</div-->					
				</div>
			</div>
		</div>
	</div>
	</form>
</div>

<script type="text/javascript">

	function InsertOvertime() 
	{
		var eRRor='0';
	
		var pAc=''; 
		if (document.getElementById("pAc").checked == true){
			pAc = "Y"; 
		}
		else{
			pAc = "N";
		}
		var pLift=''; 
		if (document.getElementById("pLift").checked == true){
			pLift = "Y"; 
		}
		else{
			pLift = "N";
		}
		var pLighting=''; 
		if (document.getElementById("pLighting").checked == true){
			pLighting = "Y"; 
		}
		else{
			pLighting = "N";
		}
		
		pNik				= $('#r_id').val(); 
		pSdate    			= $('#G_Date2').val();
		pEdate    			= $('#G_Date3').val();
		pStime   		    = $('#G_Time4').val();
		pEtime   		    = $('#G_Time5').val();
		pAc    			    = pAc;
		pLift    			= pLift;
		pLighting  		    = pLighting;
		pDescription  		= $('#pDesc').val();
		pAtasanNik  		= $('#r_mgrid').val();
		pAtasanNama  		= $('#r_mgr').val();
		pNikFor    		    = $('#r_id').val();
		
		$r_name = $('#r_name').val();
		if ($r_name==""){alert('Requestor tidak boleh kosong!'); document.getElementById('r_name').focus(); eRRor='1'; return false;}
		if (pAc=="N" && pLift=="N" && pLighting=="N"){alert('Checkbox Facility tidak boleh kosong!'); document.getElementById('pAc').focus(); eRRor='1'; return false;}
		if (pDescription==""){alert('Description tidak boleh kosong!'); document.getElementById('pDesc').focus(); eRRor='1'; return false;}
		
		//UNTUK ISIAN TABEL BAWAH
		
		//Baris-1
		OT_Name1            = $('#OT_Name1').val(); 
		OT_Floor1           = $('#OT_Floor1').val(); 
		OT_Location1        = $('#OT_Location1').val(); 				
		OT_VendorId1        = $('#r_venid1').val(); 
		OT_VendorName1      = $('#r_vennama1').val();  				
		OT_VendorPic1		= $('#r_venpic1').val();  
		
		if (OT_Name1==""){alert('Name baris No.1 tidak boleh kosong!'); document.getElementById('OT_Name1').focus(); eRRor='1'; return false;}
		if (OT_Floor1==""){alert('Floor baris No.1 tidak boleh kosong!'); document.getElementById('OT_Floor1').focus(); eRRor='1'; return false;}
		if (OT_Location1==""){alert('Location baris No.1 tidak boleh kosong!'); document.getElementById('OT_Location1').focus(); eRRor='1'; return false;}
		if (OT_VendorId1==""){alert('Vendor Name baris No.1 tidak boleh kosong!'); document.getElementById('OT_VendorId1').focus(); eRRor='1'; return false;}
		
		//Baris-2
		OT_Name2            = $('#OT_Name2').val(); 
		OT_Floor2           = $('#OT_Floor2').val(); 
		OT_Location2        = $('#OT_Location2').val(); 				
		OT_VendorId2        = $('#r_venid2').val(); 
		OT_VendorName2      = $('#r_vennama2').val();  				
		OT_VendorPic2		= $('#r_venpic2').val(); 
		
		if (OT_Name2=="" && !(OT_Floor2=="")){alert('Name baris No.2 tidak boleh kosong!'); document.getElementById('OT_Name2').focus(); eRRor='1'; return false;}
		if (OT_Name2=="" && !(OT_Location2=="")){alert('Name baris No.2 tidak boleh kosong!'); document.getElementById('OT_Name2').focus(); eRRor='1'; return false;}
		if (OT_Name2=="" && !(OT_VendorId2=="")){alert('Name baris No.2 tidak boleh kosong!'); document.getElementById('OT_Name2').focus(); eRRor='1'; return false;}
		
		if (!(OT_Name2=="") && OT_Floor2==""){alert('Floor baris No.2 tidak boleh kosong!'); document.getElementById('OT_Floor2').focus(); eRRor='1'; return false;}
		if (!(OT_Name2=="") && OT_Location2==""){alert('Location baris No.2 tidak boleh kosong!'); document.getElementById('OT_Location2').focus(); eRRor='1'; return false;}
		if (!(OT_Name2=="") && OT_VendorId2==""){alert('Vendor Name baris No.2 tidak boleh kosong!'); document.getElementById('OT_VendorId2').focus(); eRRor='1'; return false;}
		
		//Baris-3
		OT_Name3            = $('#OT_Name3').val(); 
		OT_Floor3           = $('#OT_Floor3').val(); 
		OT_Location3        = $('#OT_Location3').val(); 				
		OT_VendorId3        = $('#r_venid3').val(); 
		OT_VendorName3      = $('#r_vennama3').val();  				
		OT_VendorPic3		= $('#r_venpic3').val(); 
		
		if (OT_Name3=="" && !(OT_Floor3=="")){alert('Name baris No.3 tidak boleh kosong!'); document.getElementById('OT_Name3').focus(); eRRor='1'; return false;}
		if (OT_Name3=="" && !(OT_Location3=="")){alert('Name baris No.3 tidak boleh kosong!'); document.getElementById('OT_Name3').focus(); eRRor='1'; return false;}
		if (OT_Name3=="" && !(OT_VendorId3=="")){alert('Name baris No.3 tidak boleh kosong!'); document.getElementById('OT_Name3').focus(); eRRor='1'; return false;}
		
		if (!(OT_Name3=="") && OT_Floor3==""){alert('Floor baris No.3 tidak boleh kosong!'); document.getElementById('OT_Floor3').focus(); eRRor='1'; return false;}
		if (!(OT_Name3=="") && OT_Location3==""){alert('Location baris No.3 tidak boleh kosong!'); document.getElementById('OT_Location3').focus(); eRRor='1'; return false;}
		if (!(OT_Name3=="") && OT_VendorId3==""){alert('Vendor Name baris No.3 tidak boleh kosong!'); document.getElementById('OT_VendorId3').focus(); eRRor='1'; return false;}
		
		//Baris-4
		OT_Name4            = $('#OT_Name4').val(); 
		OT_Floor4           = $('#OT_Floor4').val(); 
		OT_Location4        = $('#OT_Location4').val(); 				
		OT_VendorId4        = $('#r_venid4').val(); 
		OT_VendorName4      = $('#r_vennama4').val();  				
		OT_VendorPic4		= $('#r_venpic4').val(); 
		
		if (OT_Name4=="" && !(OT_Floor4=="")){alert('Name baris No.4 tidak boleh kosong!'); document.getElementById('OT_Name4').focus(); eRRor='1'; return false;}
		if (OT_Name4=="" && !(OT_Location4=="")){alert('Name baris No.4 tidak boleh kosong!'); document.getElementById('OT_Name4').focus(); eRRor='1'; return false;}
		if (OT_Name4=="" && !(OT_VendorId4=="")){alert('Name baris No.4 tidak boleh kosong!'); document.getElementById('OT_Name4').focus(); eRRor='1'; return false;}
		
		if (!(OT_Name4=="") && OT_Floor4==""){alert('Floor baris No.4 tidak boleh kosong!'); document.getElementById('OT_Floor4').focus(); eRRor='1'; return false;}
		if (!(OT_Name4=="") && OT_Location4==""){alert('Location baris No.4 tidak boleh kosong!'); document.getElementById('OT_Location4').focus(); eRRor='1'; return false;}
		if (!(OT_Name4=="") && OT_VendorId4==""){alert('Vendor Name baris No.4 tidak boleh kosong!'); document.getElementById('OT_VendorId4').focus(); eRRor='1'; return false;}
		
		//Baris-5
		OT_Name5            = $('#OT_Name5').val(); 
		OT_Floor5           = $('#OT_Floor5').val(); 
		OT_Location5        = $('#OT_Location5').val(); 				
		OT_VendorId5        = $('#r_venid5').val(); 
		OT_VendorName5      = $('#r_vennama5').val();  				
		OT_VendorPic5		= $('#r_venpic5').val();  
		
		if (OT_Name5=="" && !(OT_Floor5=="")){alert('Name baris No.5 tidak boleh kosong!'); document.getElementById('OT_Name5').focus(); eRRor='1'; return false;}
		if (OT_Name5=="" && !(OT_Location5=="")){alert('Name baris No.5 tidak boleh kosong!'); document.getElementById('OT_Name5').focus(); eRRor='1'; return false;}
		if (OT_Name5=="" && !(OT_VendorId5=="")){alert('Name baris No.5 tidak boleh kosong!'); document.getElementById('OT_Name5').focus(); eRRor='1'; return false;}
		
		if (!(OT_Name5=="") && OT_Floor5==""){alert('Floor baris No.5 tidak boleh kosong!'); document.getElementById('OT_Floor5').focus(); eRRor='1'; return false;}
		if (!(OT_Name5=="") && OT_Location5==""){alert('Location baris No.5 tidak boleh kosong!'); document.getElementById('OT_Location5').focus(); eRRor='1'; return false;}
		if (!(OT_Name5=="") && OT_VendorId5==""){alert('Vendor Name baris No.5 tidak boleh kosong!'); document.getElementById('OT_VendorId5').focus(); eRRor='1'; return false;}
		
		if(eRRor=='0') 
		{
			$.post("<?= site_url() ?>work_facility/insert_ot", {
				pNik				: $('#r_id').val(), 
				pSdate    			: $('#G_Date2').val(),
				pEdate    			: $('#G_Date3').val(),
				pStime   		    : $('#G_Time4').val(),
				pEtime   		    : $('#G_Time5').val(),
				pAc    			    : pAc,
				pLift    			: pLift,
				pLighting  		    : pLighting,
				pDescription  		: $('#pDesc').val(),
				pAtasanNik  		: $('#r_mgrid').val(),
				pAtasanNama  		: $('#r_mgr').val(),
				pNikFor    		    : $('#r_id').val(),
				
				//UNTUK ISIAN TABEL BAWAH
				
				//Baris-1
				OT_Name1            : $('#OT_Name1').val(), 
				OT_Floor1           : $('#OT_Floor1').val(), 
				OT_Location1        : $('#OT_Location1').val(), 				
				OT_VendorId1        : $('#r_venid1').val(), 
				OT_VendorName1      : $('#r_vennama1').val(),  				
				OT_VendorPic1		: $('#r_venpic1').val(),  
				
				//Baris-2
				OT_Name2            : $('#OT_Name2').val(), 
				OT_Floor2           : $('#OT_Floor2').val(), 
				OT_Location2        : $('#OT_Location2').val(), 				
				OT_VendorId2        : $('#r_venid2').val(), 
				OT_VendorName2      : $('#r_vennama2').val(),  				
				OT_VendorPic2		: $('#r_venpic2').val(), 
				
				//Baris-3
				OT_Name3            : $('#OT_Name3').val(), 
				OT_Floor3           : $('#OT_Floor3').val(), 
				OT_Location3        : $('#OT_Location3').val(), 				
				OT_VendorId3        : $('#r_venid3').val(), 
				OT_VendorName3      : $('#r_vennama3').val(),  				
				OT_VendorPic3		: $('#r_venpic3').val(), 
				
				//Baris-4
				OT_Name4            : $('#OT_Name4').val(), 
				OT_Floor4           : $('#OT_Floor4').val(), 
				OT_Location4        : $('#OT_Location4').val(), 				
				OT_VendorId4        : $('#r_venid4').val(), 
				OT_VendorName4      : $('#r_vennama4').val(),  				
				OT_VendorPic4		: $('#r_venpic4').val(), 
				
				//Baris-5
				OT_Name5            : $('#OT_Name5').val(), 
				OT_Floor5           : $('#OT_Floor5').val(), 
				OT_Location5        : $('#OT_Location5').val(), 				
				OT_VendorId5        : $('#r_venid5').val(), 
				OT_VendorName5      : $('#r_vennama5').val(),  				
				OT_VendorPic5		: $('#r_venpic5').val() 
			},
			function(data) {
				$('#formuser').html(data);
			});
		}
	}
	
</script>